﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DomainModel.Entities;
                                                                    

namespace DomainModel.Abstract
{
    public interface IPostsRepository
    {
       

        IEnumerable<Post> GetAll();
        IEnumerable<Post> GetAll(bool isPublished);
        IEnumerable<Post> GetTop(int topNumber);

        Post Get(int? id);
        void Save(Post post);
        void Delete(int id);
    }
}
